﻿@{Lang lang = ViewBag.Lang;}
@model IEnumerable<TGVR_Boot.DTO.TicketDTO>
<div class="panel panel-default">
    <div class="panel-heading">
        <i class="fa fa-external-link-square"></i>@lang.THEFILGHT
        <div class="panel-tools">
            <a class="btn btn-xs btn-link panel-collapse collapses" href="#"></a><a class="btn btn-xs btn-link panel-config"
                href="#panel-config" data-toggle="modal"><i class="fa fa-wrench"></i></a><a class="btn btn-xs btn-link panel-refresh"
                    href="#"><i class="fa fa-refresh"></i></a><a class="btn btn-xs btn-link panel-expand"
                        href="#"><i class="fa fa-resize-full"></i></a><a class="btn btn-xs btn-link panel-close"
                            href="#"><i class="fa fa-times"></i></a>
        </div>
    </div>
    <div class="panel-body">
        <table class="table table-hover" id="sample-table-1">
            <thead>
                <tr>
                    <th>
                        @lang.FIRM
                    </th>
                    <th class="hidden-xs">
                        @lang.FLIGHTNO
                    </th>
                    <th>
                        @lang.FROM
                    </th>
                    <th>
                        @lang.TO
                    </th>
                    <th>
                        @lang.DATE
                    </th>
                    <th>
                        @lang.TIME
                    </th>
                </tr>
            </thead>
            <tbody>
                @{
                    foreach (var item in Model)
                    {
                    <tr>
                        <td class="center">
                            @Html.Raw("<input type='hidden' class='hotsale' value='" + (item.IsHotSale ? "true" : "false") + "'><img title='" + item.FlightNo + "' altr='" + item.FlightNo + "' src='/content/images/logo/" + item.FlightNo.Substring(0, 2) + ".png'/>")
                        </td>
                        <td class="hidden-xs" class='f-no'>
                            @item.FlightNo
                        </td>
                        <td>
                            @item.From
                        </td>
                        <td>
                            @item.To
                        </td>
                        <td class='f-time'>
                            @item.DateStart.ToString("dd/MM/yyyy")
                        </td>
                        <td class='f-time'>
                            @item.DateStart.ToString("HH:mm")
                        </td>
                    </tr>
                    }
                }
            </tbody>
        </table>
    </div>
</div>